determine if a relation is a function using the vertical line test